package com.monise.dao.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class FactoryUtil {

	private static EntityManagerFactory factory;

	// bloco static
	static {
		FactoryUtil.factory = Persistence.createEntityManagerFactory("pet");
	}

	public EntityManagerFactory getFactory() {
		return FactoryUtil.factory;
	}
}
